package com.wei.miaosha.util;


import org.apache.logging.log4j.Logger;

import java.util.Date;

/**
 * Created by Weizichen on 2018/10/05.
 * desc:规范打印格式
 */
public class LogUtils {

    /**
     * 封装时间
     *
     * @param LOGGER
     * @param message
     */
    public static void infoLog(Logger LOGGER, String message) {
        Date now = new Date();
        java.text.DateFormat formatDate = new java.text.SimpleDateFormat("dd/MM/yyyy:HH:mm:ss");
        String nowDate = formatDate.format(now);
        String messages = nowDate + " " + message;
        LOGGER.info(messages);
    }
}
